package cn.gailvlun.gll.presentation.emotion.edit.emotionlib;

import com.google.gson.reflect.TypeToken;

import cn.gailvlun.gll.net.GsonUtil;
import cn.gailvlun.gll.net.ListRes;
import cn.gailvlun.gll.net.emotion.EmotionSource;



public class JsonUtil {
    private static final String jsonString = "{\n" +
            "    \"count\": 12,\n" +
            "    \"previous\": false,\n" +
            "    \"results\": [\n" +
            "        {\n" +
            "            \"id\": 12,\n" +
            "            \"text\": \"漫威12\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"S\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"撒\",\n" +
            "            \"created\": \"2018-08-07T07:43:29Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 11,\n" +
            "            \"text\": \"漫威11\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"撒的撒上点\",\n" +
            "            \"created\": \"2018-08-07T07:43:17Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 10,\n" +
            "            \"text\": \"漫威10\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"ssss\",\n" +
            "            \"created\": \"2018-08-07T07:43:01Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 9,\n" +
            "            \"text\": \"漫威9\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"啊\",\n" +
            "            \"created\": \"2018-08-07T07:42:51Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 8,\n" +
            "            \"text\": \"漫威8\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"爱上\",\n" +
            "            \"created\": \"2018-08-07T07:42:41Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 7,\n" +
            "            \"text\": \"漫威7\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"说说\",\n" +
            "            \"created\": \"2018-08-07T07:42:32Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 6,\n" +
            "            \"text\": \"漫威6\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"ssss\",\n" +
            "            \"created\": \"2018-08-07T07:42:15Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 5,\n" +
            "            \"text\": \"漫威5\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"ssss\",\n" +
            "            \"created\": \"2018-08-07T07:42:02Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 4,\n" +
            "            \"text\": \"漫威4\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"收拾收拾\",\n" +
            "            \"created\": \"2018-08-07T07:41:51Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 3,\n" +
            "            \"text\": \"漫威3\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"ssss\",\n" +
            "            \"created\": \"2018-08-07T07:41:34Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 2,\n" +
            "            \"text\": \"漫威2\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"ssss\",\n" +
            "            \"created\": \"2018-08-07T07:41:22Z\"\n" +
            "        },\n" +
            "        {\n" +
            "            \"id\": 1,\n" +
            "            \"text\": \"漫威1\",\n" +
            "            \"pic\": \"https://img.xiaogaijun.com/543125125135.jpg\",\n" +
            "            \"emotion_type\": \"F\",\n" +
            "            \"category\": \"S\",\n" +
            "            \"source\": \"ssss\",\n" +
            "            \"created\": \"2018-08-07T07:40:44Z\"\n" +
            "        }\n" +
            "    ],\n" +
            "    \"next\": false\n" +
            "}\n";

    public static ListRes<EmotionSource> format() {
        return GsonUtil.getGson().fromJson(jsonString, new TypeToken<ListRes<EmotionSource>>() {
        }.getType());
    }
}
